icon theme: Fix crash for builtin icons
authorAlexander Larsson <alexl@redhat.com>
Tue, 17 Jun 2014 16:05:22 +0000 (18:05 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 17 Jun 2014 17:54:13 +0000 (13:54 -0400)
commit3574a809fa66a125cd148a5adc29e047bada7414
tree57606323e654a01172bd3a0975bdc17cde2e74dd
parentd87d62fe73639973de697aabc9a41e58d9c9d771
icon theme: Fix crash for builtin icons

This pushes the initialization of is_svg to an earlier point
when the GtkIconInfo is created. This is needed because an icon
info doesn't necessarily always have a filename that we can later
extract the suffix from. For instance, builtin icons have NULL
filename.

https://bugzilla.gnome.org/show_bug.cgi?id=721895
gtk/gtkicontheme.c